<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");
$q=mysql_query("SELECT * FROM users WHERE username='".$_REQUEST['userName']."'");
while($e=mysql_fetch_assoc($q)){
  $output[]=$e;
}
print(json_encode($output));
mysql_close();
?>